﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Simhopp.GUI;
using Simhopp.Model;

namespace Simhopp.Presenter
{
    class PresenterLogIn
    {
        public InterfaceLogInView _view { get; set; }

        public PresenterLogIn(InterfaceLogInView view)
        {
            this._view = view;
            this._view.EventLogIn += LogIn;
        }
        
        public void LogIn()
        {
            frmCoordinator Coordinator = new frmCoordinator();
            CompetitionList competitionList = new CompetitionList();
            PresenterCoordinator pCoordinator = new PresenterCoordinator(Coordinator, competitionList);
            
            Coordinator.ShowDialog();
        }
    }
}
